import type { ITag } from '@/api/modules/esl/priceTag';
import type { QUERY_SCOPE } from '@/enum/system';
import { useQuery, useTable } from '@/hooks/table';

export const allowEditMenu = ref(false);

interface QueryTag {
  mType: [0, 1, 2, 3, 4, 5];
  keyword: string;
  scope: QUERY_SCOPE;
  store: string;
  filterId: string;
}
export const query = useQuery<QueryTag & ITag>();
export const table = useTable<ITag>({
  rowKey: 'tagCode',
  moduleName: 'priceTag',
});
